package com.kkb.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
//开启IOC容器的注解扫描
@ComponentScan("com.kkb")
//开启AOP的注解扫描
@EnableAspectJAutoProxy
//开启事务的注解扫描
@EnableTransactionManagement
//导⼊⼦配置⽂件
@Import({JDBCConfig.class, MybatisConfig.class,TransactionManagerConfig.class})
public class SpringConfig {
}